package cn.db101.kaoqinserver.service;

import cn.db101.kaoqinserver.domain.Classes;
import cn.db101.kaoqinserver.mapper.ClassesMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Admin
* @description 针对表【t_classes(班级表)】的数据库操作Service
* @createDate 2025-05-02 17:48:24
*/
@Service
public class ClassesService {

    @Autowired
    private ClassesMapper classesMapper;

    public List<Classes> list() {
        return classesMapper.selectList(null);
    }

    public void create(Classes classes) {

        classesMapper.insert(classes);
    }

    public void update(Classes classes) {

        classesMapper.updateById(classes);
    }
}
